package com.umeox.watch.moto.apiclient.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class GetFriendsAttrDTO implements Parcelable {

    public List<DeviceFriendAttrDTO> records;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(this.records);
    }

    public GetFriendsAttrDTO() {

    }

    protected GetFriendsAttrDTO(Parcel in) {
        this.records = in.createTypedArrayList(DeviceFriendAttrDTO.CREATOR);
    }

    public static final Creator<GetFriendsAttrDTO> CREATOR = new Creator<GetFriendsAttrDTO>() {
        public GetFriendsAttrDTO createFromParcel(Parcel source) {
            return new GetFriendsAttrDTO(source);
        }

        public GetFriendsAttrDTO[] newArray(int size) {
            return new GetFriendsAttrDTO[size];
        }
    };

    @Override
    public String toString() {
        return "GetFriendsAttrDTO{" +
                "records=" + records +
                '}';
    }
}
